package com.topscore.uke.ui.activities;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.topscore.uke.R;
import com.topscore.uke.ui.ToolBarCompatActivity;

import butterknife.Bind;
import butterknife.ButterKnife;

public class MyIncomeActivity extends ToolBarCompatActivity implements View.OnClickListener {

    @Bind(R.id.header_layout)
    LinearLayout headerLayout;
    @Bind(R.id.funds_detail)
    RelativeLayout fundsDetail;
    @Bind(R.id.withdraw_records)
    RelativeLayout withdrawRecords;
    @Bind(R.id.withdraw_btn)
    Button withdrawBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_income);
        ButterKnife.bind(this);
        setCentralTitle("资金明细");
        initViews();
    }

    private void initViews() {
        withdrawBtn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.withdraw_btn:
                Intent intent = new Intent(this, WithdrawActivity.class);
                startActivity(intent);
                break;
        }
    }
}
